{if $have_errors}{include file="error.tpl"}{/if} 
{*
<div class="container">
    <div class="breadcrumb">
        <b><a href="{$current_location}/{$current_user}">{$current_user_info.first_name} {$current_user_info.last_name} {if $current_user_info.login}({$current_user_info.login}){/if}</a></b>
        {if $smarty.session.loggedIn}<small>[<a href="{$current_location}/{$current_user}/add">{$lang.add_to_friends}</a>]</small>{/if}
    </div>
</div>
    *}
<div class="message_box" style="width: 800px; display: block;">
    <div class="container" style="width: 100%"><center><p style="font-weight: bold; margin: 5px;">{$page_title}</p></center></div>
    <div class="container">
        <div class="cell">
            {if !$presents_list}
                <span class="present_list_empty">{$lang.no_presents}</span>
                {if $smarty.const.CAN_EDIT && !$is_iwish}&nbsp;<a href="{$current_location}/{$index_script}?{$place_name}=new_wish">{$lang.menu_add_wish}</a>{/if}
            {else}
            <ol class="present_list">
            {*if $smarty.const.CAN_EDIT}
                <li id="new"><p class="present_head"><cite>{$lang.new_present}</cite></p></li>
            {/if*}
            
                
            
            {if $presents_list} 
            {assign var=user_in_list value=0}
            {assign var=cnt value=0}
            {foreach from=$presents_list item=present key=key}
                {if $is_iwish && $present.user != $user_in_list}<a href="{$current_location}/{$present.user}">{$present.first_name} {$present.last_name}{if $present.login} ({$present.login}){/if}</a>{/if}
                <li id="{$present.user}_{$present.idpresents}" {if $cnt>0 && (!$is_iwish || $present.user == $user_in_list)}style="border-top: none;"{/if}>
                <p class="present_head" {if $present.amount_left <= 0}style="color: #C0C0C0"{/if} {if $present.ev_name}title="{$present.ev_name}"{/if}>
                    <cite>{$present.short_name}</cite>
                    <label class="set_right" title="{$present.ev_name}">{$present.ev_date}</label></p>
                </li>
                {assign var=user_in_list value=$present.user}
                {assign var=cnt value=$cnt+1} 
            {/foreach}
            {/if}
            
                
            
            </ol>
            {/if}
            <br>
            {assign var=url value="$current_location/$current_user"}
            {include file="navigator.tpl"}
        </div>

        <div class="cell">  
            <div class="present_desc">
            {*include file="present_detailed.tpl"*}
            </div>

            {if $present_id}
            <script type="text/javascript">
                show_present("{$present_userid}_{$present_id}");   
            </script>
            {/if}
        </div>  
    </div>
</div>
